package com.example.demo.vo;

import lombok.Data;

import java.io.Serializable;

/**
 * 登录返回VO
 * 
 * @author zhang
 * @date 2024
 */
@Data
public class LoginVO implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * Token
     */
    private String token;
    
    /**
     * Token类型
     */
    private String tokenType = "Bearer";
    
    /**
     * 用户信息
     */
    private UserInfoVO userInfo;
    
    @Data
    public static class UserInfoVO implements Serializable {
        private static final long serialVersionUID = 1L;
        
        private Long id;
        private String username;
        private String nickname;
        private String email;
    }
}

